/*
 *  charprinter.h
 */


#ifndef CHAR_PRINTER_H
#define CHAR_PRINTER_H

#include "thread.h"
#include "mutex.h"
#include "runnable.h"

class CharPrinter : public Runnable {

public:
    CharPrinter(int id, char* buf, int* current_index, Mutex* mutex);
    ~CharPrinter();
    virtual void run();

private:
    int id;
    char* buf;
    int* current_index;
    Mutex* mutex;
};

#endif //CHAR_PRINTER_H

//{+}

